package com.xlu.serve.Impl;

import com.xlu.mapper.MajorMapper;
import com.xlu.serve.MajorServe;
import com.xlu.vo.MajorVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@Slf4j
public class MajorServeImpl implements MajorServe {

    @Autowired
    private MajorMapper majorMapper;
    @Override
    public List<MajorVO> getListByCollege(Integer collegeId) {
        List<MajorVO> majorVOList = majorMapper.getListByCollege(collegeId);
        return majorVOList;
    }
}
